package com.micro.ai.template.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 创建评分请求
 *
 * @author micro-ai
 * @since 0.0.1
 */
@Data
@Schema(description = "创建评分请求")
public class RatingCreateRequest {

    @NotBlank(message = "模板ID不能为空")
    @Schema(description = "模板ID", example = "tpl_123", requiredMode = Schema.RequiredMode.REQUIRED)
    private String templateId;

    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最低为1分")
    @Max(value = 5, message = "评分最高为5分")
    @Schema(description = "评分(1-5)", example = "5", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer rating;

    @Schema(description = "评论内容", example = "这个模板非常好用，推荐！")
    private String comment;
}

